package lab02.Test22;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        String result;
        StringBuffer stringBuffer = new StringBuffer();
        Scanner s = new Scanner(System.in);
        result = s.nextLine();
        System.out.println("输入的字符串为" + result);
        for (int i = 0; i < result.length(); i++) {
            char c = result.charAt(i);
            if (c >= 'A' && c <= 'Z') {
                stringBuffer.append((char) (c + 32));
            }else if (c >= 'a' && c<= 'z'){
                stringBuffer.append(c);
            }else if (c >= '0' && c <= '9') {
                stringBuffer.append('0');
            } else stringBuffer.append('#');
        }
        System.out.println("转换后的字符为" + stringBuffer.toString());
    }

}
